﻿using System;

namespace Ganss.Excel.Tests.Data
{
    class ProductDynamicValueConvert
    {
        public string Name { get; set; }
        public string Number { get; set; }
        public string Price { get; set; }
        public bool Offer { get; set; }
        public DateTime OfferEnd { get; set; }
        public double Value { get; set; }

        public override bool Equals(object obj)
        {
            return obj is ProductDynamicValueConvert convert &&
                   Name == convert.Name &&
                   Number == convert.Number &&
                   Price == convert.Price &&
                   Offer == convert.Offer &&
                   OfferEnd == convert.OfferEnd &&
                   Value == convert.Value;
        }

        public override int GetHashCode()
        {
            return HashCode.Combine(Name, Number, Price, Offer, OfferEnd, Value);
        }
    }
}